const aes = require("./util/aes_crypto");
const crypto = require("./util/crypto");
const cryptojs = require("./util/crypto-js");


let iv = 'ts=ert$234!#78*0';
let type = 'aes-128-cbc';
let encoding = 'base64';
let key = '1234567812345678';

let data = 'fdlsafdslafdsa';

let result1 = aes.encryption(data, key);
let result2 = crypto.aes(data, key, iv, type);
let result3 = cryptojs.aes(data, key, iv, type);
let result11 = aes.decryption(result1, key);
let result22 = crypto.deaes(result2, key, iv, type);
let result33 = cryptojs.deaes(result3, key, iv, type);


console.log(result1==result2);
console.log(result11==result22);
console.log(data==result22);

console.log(result1==result3,result1,result3);
console.log(data==result33,result33);